﻿
@model List<DingTalkAgent.Model.RiverSource>
@{
    ViewBag.Title = "玉溪河源";
    Layout = "~/Areas/mobile/Views/Shared/_Layout.cshtml";
}

<div class="dd-box m-b11 dd-top-line">
    <div class="dd-list-items">
        @foreach (var item in Model)
        {
            <div class="dd-list-item dd-bottom-line p-ddt10 p-r15 p-l15">
                <a class="dd-list-item-a-link fr-arrow " href="/mobile/RiverSource/details?leveCode=@item.leveCode&RiverSourceType=@item.RiverSourceType">
                    <div class="dd-list-item-a-head dd-f">
                        <i class="bg-blue icon iconfont icon-qitaleishuiwenjiance"></i>
                        <div class="dd-list-item-a-head-con">
                            <h4>@item.resoreName</h4>
                            <div class="grey">
                                @if (item.RiverSourceType == "1")
                                {
                                    <span class="p-r15">级别：市级.湖</span>

                                }
                                @if (item.RiverSourceType == "2")
                                {
                                    <span class="p-r15">级别：市级.河</span>
                                }
                                @if (item.RiverSourceType == "3")
                                {
                                    <span class="p-r15">级别：市级.水库</span>
                                }
                                @if (item.RiverSourceType == "4")
                                {
                                    <span class="p-r15">级别：市级.渠道</span>
                                }
                                <span>所属流域：@item.ly</span>
                            </div>
                        </div>
                    </div>
                    <div class="dd-list-item-a-body bg-grey-blue m-t11">
                        @if (item.remark.Contains("|"))
                {
                            <label>河长：@item.remark.Split('|')[0]</label>
                        }
                        else
                        {
                            <label>河长：@item.remark</label>
                        }
                        @if (item.remark.Contains("|"))
                        {

                            <p>机构:@item.remark.Split('|')[1] - @item.remark.Split('|')[2]</p>
                            <p>联系方式:@item.remark.Split('|')[3]</p>
                        }
                        else
                        {

                        }
                    </div>
                </a>
            </div>
        }

    </div>
</div>
